import request from "@/utils/request";

// 查询商品
export function searchGoods(data) {
  return request({
    url: "backendApi/cashier/searchGoods",
    method: "post",
    data: data,
  });
}

// 查询会员信息
export function getMemberInfoById(userId) {
  return request({
    url: "backendApi/cashier/getMemberInfoById/" + userId,
    method: "get",
  });
}

// 发起支付
export function doPay(params) {
  return request({
    url: "clientApi/pay/doPay",
    method: "get",
    params: params,
  });
}
